Update standards to c++17, Qt >= 5.12, MSVC >= 2017 (#670)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 27 Jan 2021 19:01:41 +0000 (12:01 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 19:01:41 +0000 (12:01 -0700)
commita62093f8fa9a206056e9bb59e69bae0e259d78ae
tree8defdb772303c205f91b256b12495ad1e6efcc01
parent100c9c143006dd3c615f0d95a2d80ec542a484fc
Update standards to c++17, Qt >= 5.12, MSVC >= 2017 (#670)

* raise minimum standards to c++17, Qt 5.12, MSVC 2017.

* avoid std::optional::value which didn't work until macOS 10.14.

* avoid std::optional::value which didn't work until macOS 10.14.

* update runner for codeql so we have Qt >= 5.12

* try harder to get codeql working with newer Qt.

* use c++17 fallthrough attribute.

* use c++17 'if constexpr' as suggested by resharper.

* catch mkicondoc up with c++17
32 files changed:
.github/workflows/codeql-analysis.yml
.github/workflows/ubuntu.yml
.github/workflows/windows.yml
CMakeLists.txt
GPSBabel.pro
defs.h
delgpl.cc
dmtlog.cc
g7towin.cc
garmin_fit.cc
garmin_fit.h
gpx.h
gui/CMakeLists.txt
gui/app.pro
gui/main.cc
height.cc
igc.cc
igo8.cc
interpolate.cc
interpolate.h
kml.cc
lowranceusr.cc
lowranceusr.h
main.cc
mkicondoc/mkicondoc.pro
route.cc
skytraq.cc
src/core/deprecated/optional.h [new file with mode: 0644]
src/core/optional.h [deleted file]
util.cc
xcsv.cc
xcsv.h